<?php
session_start();
//会话变量
if(empty($_SESSION["admin"])){
	echo "<script>window.alert('请先登录后，再访问！'); location.href='../admin/login.php';</script>";
}
?>